package com.zxx.pattern.commandPattern.command_Z;

/**
 * 请求类 （相当于Television）
 *
 * @author zxx on 2021/3/4
 */
public class Stock {

    private String name = "ABC";
    private int quantity = 10;

    public void buy() {
        System.out.println("Stock [Name :" + name + ", Quantity:" + quantity + "] bought");
    }

    public void sell() {
        System.out.println("Stock [ Name: " + name + ", Quantity: " + quantity + " ] sold");
    }


}
